<!-- Facebox jQuery Plugin -->
<?=js_asset('facebox.js')?>
<script>

jQuery(document).ready(function(){
     $('a[rel*=modal]').facebox();
})

</script>
<form action="" method="post" id="frm_index"> 
   <table class="global_table">

        <thead>
            <tr>
               <!--<th><input class="check-all" type="checkbox" /></th>-->
               <th><?=t_lang('group_name')?></th>
               <th><?=t_lang('action')?></th>
            </tr>

        </thead>
        <tbody>
           <?php if(count($groups)) : ?>
                <?php foreach($groups as $g) : ?>
                    <tr>
                        <td><a href="#" title="title"><?=$g->user_group_name?></a></td>
                        <td>
                            <!-- Icons -->
                             <a href="<?=$a_edit . $g->user_group_id?>" rel="modal" title="Edit"><img src="<?=base_url('themes/admin/images/icons/pencil.png')?>" alt="Edit" /></a>
                             <a href="javascript:void(0);" onClick="doDelGroup('<?=$g->user_group_id?>')" title="Delete"><img src="<?=base_url('themes/admin/images/icons/cross.png')?>" alt="Delete" /></a>
                        </td>
                    </tr>
                <?php endforeach ?>
            <?php endif ?>
        </tbody>

        <tfoot>
            <tr>
                <td colspan="6">
                    <div class="bulk-actions align-left">
                        <!--<a class="button" href="javascript:void(0);" onClick="checkDel();"><? //=t_lang('btn_del')?></a>-->
                        <a rel="modal" class="button" href="<?=$a_add_group?>"><?=t_lang('btn_create_new')?></a>
                    </div>

                    <?php if( isset($pages) && $pages !='') : ?>
                    <div class="pagination">                           
                       <?php echo $pages; ?>

                    </div> <!-- End .pagination -->
                    <div class="clear"></div>
                    <?php endif ?>
                </td>
            </tr>
        </tfoot>

    </table>
</form><!--End #form_index-->  
    
